package com.usian.apis.article;

import com.usian.model.article.pojos.ApAuthor;
import com.usian.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * ClassName: ArticleUserControllerApi
 * Author:   WGG
 * Date:    2022-11-2022/11/14-19:22
 * Version: 1.0
 * Description:
 */
@Api(value = "作者管理",tags = "article",description = "作者管理API")
public interface ArticleUserControllerApi {

    /**
     * 根据用户id查询作者信息
     * @param id
     * @return
     */
    public ApAuthor findByUserId(@PathVariable("id") Integer id);


    /**
     * 根据id查询作者信息
     * @param id
     * @return
     */
    public ApAuthor findById(@PathVariable("id") Integer id);

    /**
     * 保存作者
     * @param apAuthor
     * @return
     */
    public ResponseResult save(@RequestBody ApAuthor apAuthor);


    /**
     * 根据id条件查询author
     * @return
     */
    public ApAuthor getByAuthor(Integer id);
}
